package com.woniuxy.commons.service;

import com.woniuxy.commons.entity.Receivables;
import com.woniuxy.commons.interceptor.FeignOauth2RequestInterceptor;
import com.woniuxy.commons.request.ResponseResult;
import com.woniuxy.commons.vo.AddAddTimeToReceivablesVo;
import com.woniuxy.commons.vo.ProjectVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(name = "repayment", path = "/repayment", contextId = "repayment",configuration = FeignOauth2RequestInterceptor.class)
public interface FeignRepaymentService {
    @PostMapping("/addRepayment")
    public ResponseResult<Boolean> addRepayment(@RequestBody ProjectVo projectVo);

    @GetMapping("/checkRepaymentSuccess/{pno}")
    public ResponseResult<Boolean> checkRepaymentSuccess(@PathVariable("pno") String pno);
}
